<?php

namespace IDock\Insurance\QHIC\Request;

use IDock\Http\RequestFormat;
use IDock\Insurance\QHIC\Request\AllQHICRequest;
use IDock\Insurance\QHIC\Response\ElecApplicationFormResponse;
use IDock\Insurance\QHIC\Response\PolicyPaymentResponse;
use IDock\Printer\NonCar\NonCarInquirySinglePrinter;
use IDock\Visitor\EPolicyDownloadVisitor;
use IDock\Visitor\PolicyPaymentVisitor;
use stdClass;

class PolicyPaymentRequest extends AllQHICRequest
{
    public $requestType = 'VHL0019';

    protected $response = PolicyPaymentResponse::class;

    protected $urlTip = '发送电子投保单';

    /**
     * @var  PolicyPaymentVisitor $visitor
     */
    protected $visitor;

    public function generate(): array
    {
        return [
            'JQ_CAppNo' => $this->visitor->ciInquiryNo,
            'SY_CAppNo' => $this->visitor->biInquiryNo,
            'CSignTyp' => '2',
        ];
    }

}
